package com.ruoyi.matrix.open

import io.fatmore.web.api.ApiController
import io.fatmore.web.api.ApiResponse
import javax.servlet.http.HttpServletRequest

open class BaseApi : ApiController() {
    override fun onException(e: Exception?): Any {
        e?.printStackTrace()
        return ApiResponse.error(e?.message)
    }

    override fun validApi(request: HttpServletRequest?, body: String?) {
    }

    override fun initSession(request: HttpServletRequest?, body: String?) {
    }

    override fun hasSession(): Boolean {
        return false
    }
}